package com.qly.website.feign.hystrix;

import com.qly.website.feign.TestFeignInterface;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Andy ye on 2018/8/2.
 */
@Component
public class TestFeignHystrix implements TestFeignInterface {

    @Override
    public String sayHiFromFeignClient(@RequestParam(value = "name") String name) {
        return "sorry " + name
                + ", seems some error occured while running!";
    }
}
